<h1>Listing users</h1>

<table>
  <tr>
    <th></th>
    <th align="left" class="<%= @sorter.column_order_class('name') %>"><%= link_to 'Email', @sorter.to_link('name') %></th>
    <th align="left" class="<%= @sorter.column_order_class('short') %>"><%= link_to 'Short', @sorter.to_link('short') %></th>
  </tr>
  
<% for user in @users %>
  <tr>
    <td><%= link_to_destroy(user, 'user', 'delete_user')%></td>
    <td><%=h user.name %></td>
    <td><%=h user.short %></td>
    <!--td><%= link_to 'Edit', :action => 'edit', :id => user %></td-->
  </tr>
<% end %>
</table>

<%= render_partial "partial/paginator", @user_pages %>

<br />

<%= link_to 'New user', :action => 'add_user' %>
